<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
		<title>支付成功</title>
	</head>
	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>  
	<!-- uni-app js -->
	<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
	<!-- 手淘适配 -->
	<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>

	<style type="text/css">
		* {
			margin: 0;
			padding: 0;
		}

		.success {
			display: flex;
			justify-content: center;
			margin-top: 120px;
			font-size: 24px;
			color: #1BAC1B;
		}

		.btn {
			padding-top: 40px;
		}

		.btn button:nth-child(1) {
			color: #FF8252;
			background: #FFF7F4;
			border: 1px solid rgba(255, 130, 82, 0.60);
		}

		button {
			display: flex;
			flex-direction: column;
			align-items: center;
			width: 180px;
			height: 40px;
			line-height: 40px;
			background: #FF8252;
			box-shadow: 0 2px 4px 0 rgba(255, 130, 82, 0.50);
			border-radius: 67.5px;
			font-size: 16px;
			color: #FFFFFF;
			margin: 10px auto;
			border: none;
		}
	</style>
	<body>
		<div class="success">支付成功</div>
		<div class="btn">
			<button onclick="go_home()">回到首页</button>
			<button onclick="go_order()">查看订单</button>
		</div>
		<script type="text/javascript">
			function go_home() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			}

			function go_order() {
				wx.miniProgram.switchTab({
					url: '/pages/index/index'
				})
			}
		</script>
	</body>
</html>
